package org.dejavu.design.builder;

import java.util.ArrayList;
import java.util.List;

import org.dejavu.design.abstractfactory.MailSender;
import org.dejavu.design.abstractfactory.Sender;
import org.dejavu.design.abstractfactory.SmsSender;

/**
* <p>Title: Builder</p>
* <p>Description: </p>
* <p>Company: </p> 
* @author dejavu
* @date 2016-9-7 下午4:09:40
*/
public class Builder {
	
	private List<Sender> list = new ArrayList<Sender>();
	
	public void produceMailSender(int count){
		for (int i = 0; i < count ; i++) {
			list.add(new MailSender());
		}
	}
	
	public void produceSmsSender(int count){
		for (int i = 0; i < count ; i++) {
			list.add(new SmsSender());
		}
	}
}
